<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="userid" name="userid" th:value="${frontuser.userid}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">用户名：</label>
                            <div class="col-sm-8">
                                <input id="username" name="username" th:value="${frontuser.username}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">昵称：</label>
                            <div class="col-sm-8">
                                <input id="nickname" name="nickname" th:value="${frontuser.nickname}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">登录密码：</label>
                            <div class="col-sm-8">
                                <input id="loginpass" name="loginpass" th:value="${frontuser.loginpass}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">支付密码：</label>
                            <div class="col-sm-8">
                                <input id="paypass" name="paypass" th:value="${frontuser.paypass}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">资产：</label>
                            <div class="col-sm-8">
                                <input id="zichan" name="zichan" th:value="${frontuser.zichan}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">点数：</label>
                            <div class="col-sm-8">
                                <input id="dianshu" name="dianshu" th:value="${frontuser.dianshu}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">头像：</label>
                            <div class="col-sm-3">
                                <input id="touxiang" name="touxiang" th:value="${frontuser.touxiang}"
                                       class="form-control" type="hidden">
                                <img id="uimg" th:src="${frontuser.touxiang}" width="100px" height="100px">
                            </div>
                            <div class="col-sm-6 ">
                                <input type="file" id="file" name="file" accept="image/jpeg,image/png">

                                <button type="button" class="btn btn-success" onclick="uploadFile()">
                                    <i class="fa fa-cloud"></i>上传图片
                                </button>

                                <span style="color: red">步骤：1.选择文件 2.上传图片</span>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">有效时间（Hour）：</label>
                            <div class="col-sm-8">
                                <input id="youxiaotime" name="youxiaotime" th:value="${frontuser.youxiaotime}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">手机：</label>
                            <div class="col-sm-8">
                                <input id="phone" name="phone" th:value="${frontuser.phone}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">上一级用户id：</label>
                            <div class="col-sm-8">
                                <input id="parentid" name="parentid" th:value="${frontuser.parentid}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">创建时间：</label>
                            <div class="col-sm-8">
                                <input id="createtime" placeholder="例如：2021-05-04 12:35:40" name="createtime"
                                       th:value="${#dates.format(frontuser.createtime,'yyyy-MM-dd  hh:mm:ss')}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">邀请码：</label>
                            <div class="col-sm-8">
                                <input id="yaoqingma" name="yaoqingma" th:value="${frontuser.yaoqingma}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">火币apikey：</label>
                            <div class="col-sm-8">
                                <input id="huobiapikey" name="huobiapikey" th:value="${frontuser.huobiapikey}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">火币apisecret：</label>
                            <div class="col-sm-8">
                                <input id="huobiapisecret" name="huobiapisecret" th:value="${frontuser.huobiapisecret}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">币安apikey：</label>
                            <div class="col-sm-8">
                                <input id="bianceapikey" name="bianceapikey" th:value="${frontuser.bianceapikey}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">币安apisecret：</label>
                            <div class="col-sm-8">
                                <input id="bianceapisecret" name="bianceapisecret"
                                       th:value="${frontuser.bianceapisecret}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/system/frontuser/edit.js">
</script>
</body>
</html>
